{
cache_descr_is_html = 0;
if (attr.hasAttribute("html")) {
- if (attr.value("html").toString() == QStringLiteral("True")) {
+ if (attr.value("html").toString() == QLatin1String("True")) {
cache_descr_is_html = 1;
}
}
gc_data->id = attr.value("id").toString().toInt();
}
if (attr.hasAttribute("available")) {
- if (attr.value("available").toString().compare(QStringLiteral("True"), Qt::CaseInsensitive) == 0) {
+ if (attr.value("available").toString().compare(QLatin1String("True"), Qt::CaseInsensitive) == 0) {
gc_data->is_available = status_true;
- } else if (attr.value("available").toString().compare(QStringLiteral("False"), Qt::CaseInsensitive) == 0) {
+ } else if (attr.value("available").toString().compare(QLatin1String("False"), Qt::CaseInsensitive) == 0) {
gc_data->is_available = status_false;
}
}
if (attr.hasAttribute("archived")) {
- if (attr.value("archived").toString().compare(QStringLiteral("True"), Qt::CaseInsensitive) == 0) {
+ if (attr.value("archived").toString().compare(QLatin1String("True"), Qt::CaseInsensitive) == 0) {
gc_data->is_archived = status_true;
- } else if (attr.value("archived").toString().compare(QStringLiteral("False"), Qt::CaseInsensitive) == 0) {
+ } else if (attr.value("archived").toString().compare(QLatin1String("False"), Qt::CaseInsensitive) == 0) {
gc_data->is_archived = status_false;
}
}
* last date we saw in this log.
*/
case tt_cache_log_type:
- if ((cdatastr.compare(QStringLiteral("Found it")) == 0) &&
+ if ((cdatastr.compare(QLatin1String("Found it")) == 0) &&
(0 == wpt_tmp->gc_data->last_found.toTime_t())) {
wpt_tmp->AllocGCData()->last_found = gc_log_date;
}
fprint_xml_chain(tag->child, wpt);
}
if (wpt && wpt->gc_data->exported.isValid() &&
- tag->tagname.compare(QStringLiteral("groundspeak:cache")) == 0) {
+ tag->tagname.compare(QLatin1String("groundspeak:cache")) == 0) {
writer->writeTextElement("time",
wpt->gc_data->exported.toPrettyString());
}
*/
QString exten = QFileInfo(curfname).suffix();
if (exten.length() > 0) {
- if (0 == exten.compare(QStringLiteral("upt"), Qt::CaseInsensitive)) {
+ if (0 == exten.compare(QLatin1String("upt"), Qt::CaseInsensitive)) {
extension_hint = WPTDATAMASK;
- } else if (0 == exten.compare(QStringLiteral("log"), Qt::CaseInsensitive)) {
+ } else if (0 == exten.compare(QLatin1String("log"), Qt::CaseInsensitive)) {
extension_hint = TRKDATAMASK;
- } else if (0 == exten.compare(QStringLiteral("rte"), Qt::CaseInsensitive)) {
+ } else if (0 == exten.compare(QLatin1String("rte"), Qt::CaseInsensitive)) {
extension_hint = RTEDATAMASK;
}
}
static status_type
unicsv_parse_status(const QString& str)
{
- if (str.compare(QStringLiteral("true"), Qt::CaseInsensitive) == 0 ||
- str.compare(QStringLiteral("yes"), Qt::CaseInsensitive) == 0 ||
+ if (str.compare(QLatin1String("true"), Qt::CaseInsensitive) == 0 ||
+ str.compare(QLatin1String("yes"), Qt::CaseInsensitive) == 0 ||
str == "1") {
return status_true;
}
- if (str.compare(QStringLiteral("false"), Qt::CaseInsensitive) == 0 ||
- str.compare(QStringLiteral("no"), Qt::CaseInsensitive) == 0 ||
+ if (str.compare(QLatin1String("false"), Qt::CaseInsensitive) == 0 ||
+ str.compare(QLatin1String("no"), Qt::CaseInsensitive) == 0 ||
str == "0") {
return status_false;
}